home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 66587 / 66587.xpi / content / sidebar.xul < prev   
Extensible Markup Language  |  2010-02-04  |  1KB  |  27 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?xml-stylesheet href="chrome://panabeemini/skin/overlay.css" type="text/css"?>
  3. <!DOCTYPE overlay SYSTEM "chrome://panabeemini/locale/panabeemini.dtd">
  4.  
  5. <page id="abpanabeemini_sidebar" title="Panabee" onload="panabeemini.do_sidebar_loaded()" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  6.  
  7.   <script src="overlay.js" />  
  8.  
  9.   <vbox id='panabeemini_vbox' flex="1"></vbox>
  10.  
  11.   <script>
  12.     var panabeemini_iframe = document.getElementById('panabeemini_content');
  13.     var root_url = 'http://www.panabee.com/mini?q=';
  14.     var panabee_url = root_url + encodeURI(content.document.location);
  15.     if (panabeemini_iframe) {
  16.         panabeemini_iframe.setAttribute('src', panabee_url);
  17.     } else {
  18.           var vbox = document.getElementById('panabeemini_vbox');
  19.         var new_iframe = document.createElement('iframe');
  20.         new_iframe.id = 'panabeemini_content';
  21.         new_iframe.setAttribute('src', panabee_url);
  22.         new_iframe.setAttribute('flex', '1');
  23.         vbox.appendChild(new_iframe);
  24.     }
  25.   </script>
  26.  
  27. </page>